{extend name="base_iframe" /}


{block name="body"}


	<form class="form-horizontal ajax-form"  method="post" >

		<div class="row box-ota-info">
			<div class="col-md-12">
				<div class="box-body">


					<div class="form-group">
						<div class="col-sm-2"></div>
					</div>

					<div class="form-group">
						<label class="col-sm-2 control-label">分类名称</label>
						<div class="col-sm-8">
							<input type="text" class="form-control" name="cate_name" placeholder="请输入分类名称" value="" />
						</div>
					</div>

					<div class="form-group">
						<label class="col-sm-2 control-label">上级分类</label>
						<div class="col-sm-3">
							<select class="form-control" name="parent_id">
								<option value="0" >———— 无上级分类 ————</option>
								{volist name="cateInfo" id="v"}
									<option value="{$v.id}">{$v.level ? "|" : ""} {:str_repeat("——", $v.level)} {$v.cate_name}</option>
								{/volist}
							</select>
						</div>
					</div>

					<div class="form-group">
						<label class="col-sm-2 control-label">分类下品牌</label>

						<div class="col-md-4">
							<div class="box box-info collapsed-box index">
								<div class="box-header with-border">
									<h3 class="box-title">
										<input type="checkbox" class="index-chkbox select-all"  >&nbsp;&nbsp;全选
									</h3>

									<div class="box-tools pull-right">
										<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-plus"></i>
										</button>
									</div>

								</div>
								{volist name="brandInfo" id="v"}
									<div class="box-body">
										<input type="checkbox" name="brand_id[]" class="action-chkbox" value="{$v.id}" >&nbsp;&nbsp;{$v.brand_name}
									</div>
								{/volist}

							</div>
						</div>



					</div>

					<div class="form-group">
						<label class="col-sm-2 control-label">关键字</label>
						<div class="col-sm-8">
							<input type="text" class="form-control" name="meta_keywords" placeholder="请添加分类关键字，多个关键字用逗号隔开" value="" />
						</div>
					</div>

					<div class="form-group">
						<label class="col-sm-2 control-label">描述</label>
						<div class="col-sm-8">
							<textarea class="form-control textarea" name="meta_description" rows="5"></textarea>
						</div>
					</div>

					<div class="form-group">
						<label class="col-sm-2 control-label">排序值</label>
						<div class="col-sm-2">
							<input type="text" class="form-control" name="seq" placeholder="数字小排前" value="" />
						</div>
					</div>

					<div class="form-group attr-div">
						<label class="col-sm-2 control-label">检索属性</label>

						<div class="col-sm-3">
							<select class="form-control" name="type_id[]" data-url="{:url('admin/TypeAttr/ajaxGetSearchAttr')}">
								<option value="" >———— 请选择类型 ————</option>
								{volist name="typeInfo" id="v"}
									<option value="{$v.id}">{$v.type_name}</option>
								{/volist}
							</select>
						</div>

						<div class="col-sm-3">
							<select class="form-control" name="attr_id[]">
								<option value="" >———— 请选择属性 ————</option>
							</select>
						</div>

						<div class='col-md-1'>
							<a class='clone-this' href='javascript:void(0);'>[+]</a>
						</div>

					</div>


				</div>
			</div>
		</div>
	</form>


{/block}


{block name="script"}
	<script type="text/javascript" src="__AJS__/goods_cate/add.js"></script>
{/block}
